﻿@using DemoLib.Shared.Models
@using Mvc4Demo.Controls
@using Mvc4Demo.Extensions
@using Mvc4Demo.Extensions
@using Mvc4Demo.Models
@{
    string deviceType;
    if (HttpExtensions.HasMobileSpecificViews && this.Request.IsSupportedMobileDevice(out deviceType))
    {
        Layout = string.Format("~/Views/Shared/{0}/_Layout.cshtml", deviceType);
    }
    else
    {
        Layout = "~/Views/Shared/_Layout.cshtml";
    }
}